package com.ka.component;

import java.util.List;

public class StringUtils {

	public static Boolean checkInvalidString(String str) {

		if (str == null || str.length() == 0)
			return false;

		return true;

	}

	public static Boolean checkMaxValidString(String str) {

		if (str == null || str.length() > 1000)
			return false;
		return true;
	}

	public static String merge(List<String> lstr, char regex) {

		if (lstr == null || lstr.size() == 0)
			return "";

		String str = "";
		for (String s : lstr) {
			str += regex + s + "\n";
		}

		return str;

	}
}
